<div class="row-fluid sortable ui-sortable">
	<div id="list-peternakan" class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-home"></i> Peternakan</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
					<tr>
						<th>Nama</th>
						<th>Alamat</th>
						<th>Kota</th>
						<th>No Telp</th>
						<th>Email</th>
						<th>Kode Pos</th>
						<th>Tanggal Berdiri</th>
						<th>Jumlah Sapi</th>
						<th>Info</th>
						<th style="width:77px;!important">Action</th>
					</tr>
				</thead>   
				<tbody>
				<?php
					if($peternakan){
						foreach($peternakan->result_array() as $row){
							echo"<tr>
								<td class='nama".$row['ID_TITIK_PASOK']."'>".$row['NAMA']."</td>
								<td class='alamat".$row['ID_TITIK_PASOK']."'>".$row['ALAMAT']."</td>
								<td class='nama-kota".$row['ID_TITIK_PASOK']."'>".$row['NAMA_KOTA']."</td>
								<td class='no-telp".$row['ID_TITIK_PASOK']."'>".$row['NO_TELP']."</td>
								<td class='email".$row['ID_TITIK_PASOK']."'>".$row['EMAIL']."</td>
								<td class='kode-pos".$row['ID_TITIK_PASOK']."'>".$row['KODE_POS']."</td>
								<td class='tgl-berdiri".$row['ID_TITIK_PASOK']."'>".$row['TANGGAL_BERDIRI']."</td>
								<td class='jumlah-sapi".$row['ID_TITIK_PASOK']."'>".$row['JUMLAH_SAPI']."</td>
								<td class='info".$row['ID_TITIK_PASOK']."'>".$row['INFO']."</td>
								<td class='center'>
										<a class='btn btn-info edit-list' title='Edit' onclick='editList(".$row['ID_TITIK_PASOK'].",\"false\");'>
											<i class='icon-edit icon-white'></i>                                   
										</a>
										<a class='btn btn-danger hapus-list' title='Delete' onclick='deleteList(".$row['ID_TITIK_PASOK'].");'>
											<i class='icon-trash icon-white'></i> 
										</a>
										<input type='hidden' value='".$row['ID_KOTA']."' id='id_kota".$row['ID_TITIK_PASOK']."'>
										
										<input type='hidden' class='lat".$row['ID_TITIK_PASOK']."' name='lat' value='".$row['LAT']."'>
										<input type='hidden' class='lng".$row['ID_TITIK_PASOK']."' name='lng' value='".$row['LON']."'>
								</td>
								
							</tr>";
						}
					}
				?>
				</tbody>
			</table>            
		</div>
	</div>
</div>

